﻿ var SequenceSplitter_isEventAdded_;
 var SequenceSplitter_objectPageLoad = this.pageLoad;
 var SequenceSplitter_isPageLoadAdded_;
 if(SequenceSplitter_isPageLoadAdded_ != true)
 {
     SequenceSplitter_isPageLoadAdded_ = true; 
     if(typeof this.pageLoad != 'function')
     {
         this.pageLoad = SequenceSplitter_clientPageLoad;
     }
     else
     {
         this.pageLoad = function()
            {
                if(SequenceSplitter_objectPageLoad)
                {
                    SequenceSplitter_objectPageLoad();
                }
                SequenceSplitter_clientPageLoad('', '');
            }
     }
 } 
 function SequenceSplitter_clientPageLoad(object, e)
 {
    if(SequenceSplitter_isEventAdded_ != true)
    {
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(SequenceSplitter_EndRequestHandler);
        SequenceSplitter_isEventAdded_ = true;
        __doPostBack(SequenceSplitter_GetPostbackControlClientID(), '');
    }
 }
 function SequenceSplitter_SetUpdateProgressStates()
 {
    var stillLoadingDivIds = document.getElementById(
                                SequenceSplitter_GetInProgressSequenceSplitsHiddenFieldClientID()).
                                value.split(';');
    for(var divIdIndex in stillLoadingDivIds)
        {
            var eachStillLoadingDivId = stillLoadingDivIds[divIdIndex];
            if(eachStillLoadingDivId != '')
            {
                var setUpdateProgresStateExpression = 'document.getElementById(\'' +
                                                        eachStillLoadingDivId + 
                                                        '\').style.display = \'block\';';
                setTimeout(setUpdateProgresStateExpression, 0);
            }
        }
 }
 function SequenceSplitter_EndRequestHandler(sender, args)
 {
    if(document.getElementById(SequenceSplitter_GetStateHiddenFieldClientID()).value != 'LoadCompleted')
    {
        SequenceSplitter_SetUpdateProgressStates();
        if(document.getElementById(SequenceSplitter_GetStateHiddenFieldClientID()).value != 'None')
        {
            __doPostBack(SequenceSplitter_GetPostbackControlClientID(), '');
        }
    }
 }